package com.hospital.pharmacy.controller;

import com.hospital.pharmacy.service.SuppilerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/*
 * @program: Hospital
 * @description: 供应商controller
 * @author: 杨曼珍
 * @create: 2019-01-05 16:11
 */

@Controller
@RequestMapping(value = "/suppiler")
public class SuppilerController {
    @Autowired
    SuppilerService suppilerService;
    /*显示所有供应商*/


    @RequestMapping(value = "/all_suppiler",produces = "application/json;charset=utf-8", method = RequestMethod.GET)
    @ResponseBody
    public String getAllSuppiler(){
        return suppilerService.getAllSuppiler();
    }

}
